---
title: Word Rotate
date: 2024-05-21
description: An vertical rotation of words
author: nyxb
published: true
---

<ComponentPreview name="word-rotate-demo" />


### Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx nyxb@latest add word-rotate
```

</TabsContent>

<TabsContent value="manual">

<Steps>

Copy and paste the following code into your project.

```text
components/ui/word-rotate.tsx
```

<ComponentSource name="word-rotate" />

</Steps>

</TabsContent>

</Tabs>

## Props

| Prop        | Type            | Description                                        | Default |
| ----------- | --------------- | -------------------------------------------------- | ------- |
| className   | string          | The class name to be applied to the component      |         |
| duration    | number          | The class name to be applied to the shimmer.       | 2500    |
| words       | string[]        | An array of words to rotate through                | ""      |
| framerProps | HTMLMotionProps | An object containing framer-motion animation props | {}      |
